﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace PhoneToolsDemoApp.LiveTileControls
{
    public partial class MediumFlipTileControl : UserControl
    {
        public MediumFlipTileControl(string tileText)
        {
            InitializeComponent();
            TextBlock[] tileTextBoxes = new TextBlock[] { this.TileText1, this.TileText2, this.TileText3, this.TileText4 };
            string[] words = tileText.Split();

            for (int i = 0; i < 4; i++)
            {
                tileTextBoxes[i].Text = words[i];
            }
        }
    }
}
